package com.gsdse.service;

import com.aliyuncs.exceptions.ClientException;
import com.gsdse.pojo.ReturnData;
import com.gsdse.pojo.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface UserService {
    //增添
    Boolean InsertUser (User user);

    //修改
    Boolean updateUserById (User user);

    //查找
    User selectUserByUserId (Integer userId);

    User selectUserByReallyNameAndPhoneNumber ( String userName,  String phoneNumber);

    User selectUserByReallyNameAndEmail ( String userName,  String email);


    ReturnData uploadAvatar(MultipartFile file) throws ClientException, IOException;

    Boolean updateUserAndAvatarById(User user);

    ReturnData checkHaveEdit(Integer userId);
}
